#ifndef REGISTERDIALOG_H
#define REGISTERDIALOG_H
#include "MessageType.h"
#include "mytcpsocket.h"
#include <QDialog>
#include <QLineEdit>
//注册用对话框
class RegisterDialog:public QDialog
{
    Q_OBJECT
public:
    RegisterDialog(MyTcpSocket * socket,QWidget * parent = nullptr);
   // RegisterDialog(QWidget * parent = nullptr);
public slots:
    void login();
    void handelSignupPacket(const Packet& packet);
private:
     MyTcpSocket * m_clientTcpSocket;
     QLineEdit *lineEdit_username;
     QLineEdit *lineEdit_passsword;
     QLineEdit *lineEdit_passsword_confirm;
};

#endif // REGISTERDIALOG_H
